package spring.ioc.xml.service;

import spring.ioc.xml.dao.StudentDao;
import spring.ioc.xml.pojo.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import jakarta.annotation.Resource;
import java.util.List;

/**
 * description:
 */
@Service
public class StudentServiceImpl  implements StudentService{

    @Resource(name="studentDaoImpl")
    private StudentDao studentDao;

    @Override
    public List<Student> findAll() {
        List<Student> studentList = studentDao.queryAll();
        return studentList;
    }
}
